﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Lazy Net Stats: main page</title>
  <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
    <div id="wrapper">
        <h1>Your network statistics</h1>  
        {% for stat in info %}
        <div class="stats">
            {% if stat.working %}
            <div class="status good">accessible</div>
            {% else %}
            <div class="status bad">not accessible</div>
            {% endif %}
            <a href="/delete?key={{ stat.key }}" class="delete">x</a>
            <div class="metadata">
                <div><span>Router's address: </span>{{ stat.address }}</div>
                <div><span>Last update: </span>{{ stat.updated|date:"l, d F Y G:i:s" }}</div>
            </div>
            {% if stat.chart_url %}<img src="{{ stat.chart_url }}" />{% endif %}
            <div class="metadata small">Created on {{ stat.created|date:"l, d F Y G:i:s" }}</div>
        </div>
        {% endfor %}
        <a id="addbutton" href="/add">Add another router</a>
    </div>
    <div id="footer">
        <img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" alt="Powered by Google App Engine" />
        <p>Project page <a href="http://code.google.com/p/lazynetstats/">http://code.google.com/p/lazynetstats/</a></p>
        <p style="margin: 0;">2009, Bohdan Koval.</p>
    </div>
</body>
</html>
